package io.gitee.zhangbinhub.admin.log.mapper;

import io.gitee.zhangbinhub.admin.log.entity.LoginLog;
import io.gitee.zhangbinhub.admin.log.entity.LoginLogHistory;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface LoginLogMapper {
    LoginLogMapper INSTANCE = Mappers.getMapper(LoginLogMapper.class);

    LoginLogHistory toHistory(LoginLog log);
}
